package com.wetao.lib_common.bean.response;

import com.google.gson.Gson;
import com.wetao.lib_common.base.Base2Response;

import java.io.Serializable;
import java.util.List;

/**
 * author: zhouyh
 * created on: 2021/11/1 11:23 上午
 * description:
 */
public class ReportStudyInfo extends Base2Response implements Serializable {


    /**
     * data : {"commitCount":6,"scoreRatio":0.29,"classScoreAverageRatio":0.29,"classRank":2,"previousRank":1,"questionCount":78,"rightCount":57,"wrongCount":9,"wrongRatio":0.16,"classWrongRatio":0.16,"answerTime":284,"classAnswerTime":97,"dateList":["10/01-10/03第一周","10/04-10/10第二周","10/11-10/17第三周","10/18-10/24第四周","10/25-10/31第五周"],"mineRatioList":[0,0,0,0,0.29],"classRatioList":[0,0,0,0,0.29]}
     */

    private DataBean data;

    public static ReportStudyInfo objectFromData(String str) {

        return new Gson().fromJson(str, ReportStudyInfo.class);
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * commitCount : 6      提交次数
         * scoreRatio : 0.29    得分率
         * classScoreAverageRatio : 0.29   班级平均得分率
         * "uncorrectCount": 4,
         *  "unanswerCount": 0,
         * classRank : 2        排名
         * previousRank : 1     上一次排名
         * questionCount : 78   总题量
         * rightCount : 57      答对题数
         * wrongCount : 9       答错题数
         * wrongRatio : 0.16    错题率
         * classWrongRatio : 0.16   班级错题率
         * answerTime : 284      答题总时长
         * classAnswerTime : 97     班级答题时长
         * dateList : ["10/01-10/03第一周","10/04-10/10第二周","10/11-10/17第三周","10/18-10/24第四周","10/25-10/31第五周"]
         * mineRatioList : [0,0,0,0,0.29]
         * classRatioList : [0,0,0,0,0.29]
         */

        private Integer commitCount;
        private Float scoreRatio;
        private Float classScoreAverageRatio;
        private Integer classRank;
        private Integer previousRank;
        private Integer questionCount;
        private Integer rightCount;
        private Integer wrongCount;
        private Integer uncorrectCount;
        private Integer unanswerCount;
        private Float wrongRatio;
        private Float classWrongRatio;
        private Integer answerTime;
        private Integer classAnswerTime;
        private List<String> dateList;
        private List<Float> mineRatioList;
        private List<Float> classRatioList;

        public static DataBean objectFromData(String str) {

            return new Gson().fromJson(str, DataBean.class);
        }

        public Integer getCommitCount() {
            return commitCount;
        }

        public void setCommitCount(Integer commitCount) {
            this.commitCount = commitCount;
        }

        public Float getScoreRatio() {
            return scoreRatio;
        }

        public void setScoreRatio(Float scoreRatio) {
            this.scoreRatio = scoreRatio;
        }

        public Float getClassScoreAverageRatio() {
            return classScoreAverageRatio;
        }

        public void setClassScoreAverageRatio(Float classScoreAverageRatio) {
            this.classScoreAverageRatio = classScoreAverageRatio;
        }

        public Integer getClassRank() {
            return classRank;
        }

        public void setClassRank(Integer classRank) {
            this.classRank = classRank;
        }

        public Integer getPreviousRank() {
            return previousRank;
        }

        public void setPreviousRank(Integer previousRank) {
            this.previousRank = previousRank;
        }

        public Integer getQuestionCount() {
            return questionCount;
        }

        public void setQuestionCount(Integer questionCount) {
            this.questionCount = questionCount;
        }

        public Integer getRightCount() {
            return rightCount;
        }

        public void setRightCount(Integer rightCount) {
            this.rightCount = rightCount;
        }

        public Integer getWrongCount() {
            return wrongCount;
        }

        public void setWrongCount(Integer wrongCount) {
            this.wrongCount = wrongCount;
        }

        public Float getWrongRatio() {
            return wrongRatio;
        }

        public void setWrongRatio(Float wrongRatio) {
            this.wrongRatio = wrongRatio;
        }

        public Float getClassWrongRatio() {
            return classWrongRatio;
        }

        public void setClassWrongRatio(Float classWrongRatio) {
            this.classWrongRatio = classWrongRatio;
        }

        public Integer getAnswerTime() {
            return answerTime;
        }

        public void setAnswerTime(Integer answerTime) {
            this.answerTime = answerTime;
        }

        public Integer getClassAnswerTime() {
            return classAnswerTime;
        }

        public void setClassAnswerTime(Integer classAnswerTime) {
            this.classAnswerTime = classAnswerTime;
        }

        public List<String> getDateList() {
            return dateList;
        }

        public void setDateList(List<String> dateList) {
            this.dateList = dateList;
        }

        public List<Float> getMineRatioList() {
            return mineRatioList;
        }

        public void setMineRatioList(List<Float> mineRatioList) {
            this.mineRatioList = mineRatioList;
        }

        public List<Float> getClassRatioList() {
            return classRatioList;
        }

        public void setClassRatioList(List<Float> classRatioList) {
            this.classRatioList = classRatioList;
        }

        public Integer getUncorrectCount() {
            return uncorrectCount;
        }

        public void setUncorrectCount(Integer uncorrectCount) {
            this.uncorrectCount = uncorrectCount;
        }

        public Integer getUnanswerCount() {
            return unanswerCount;
        }

        public void setUnanswerCount(Integer unanswerCount) {
            this.unanswerCount = unanswerCount;
        }
    }
}
